home *** CD-ROM | disk | FTP | other *** search
/ Day Cry / Day Cry CD.bin / oh_towns / ugoku / src.lzh / MOVRLF / IMETIF.C < prev    next >
C/C++ Source or Header  |  1994-09-10  |  14KB  |  585 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    tifDialogId[5] ;
  9. extern int    tifListMenuId0 ;
  10. extern int    tifListFunc0() ;
  11. extern int    tifScrollBarId0 ;
  12. extern int    tifScrollFunc0() ;
  13. extern int    tifMesId[14] ;
  14. extern int    tifTIconId[2] ;
  15. extern int    tifTIconFunc0() ;
  16. extern int    tifDButtonId[8] ;
  17. extern int    tifDButtonFunc0() ;
  18. extern int    tifDButtonFunc1() ;
  19. extern int    tifListMenuId1 ;
  20. extern int    tifListFunc1() ;
  21. extern int    tifDButtonFunc5() ;
  22. extern int    tifDButtonFunc3() ;
  23. extern int    tifDButtonFunc4() ;
  24. extern int    tifDButtonFunc6() ;
  25. extern int    tifDButtonFunc2() ;
  26. extern int    tifNumBoxId ;
  27. extern int    tifScrollBarId1 ;
  28. extern int    tifScrollFunc1() ;
  29. extern int    tifDButtonFunc7() ;
  30.  
  31. #define ALIGN    4
  32. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  33.  
  34. /*    MMI_init ùpâfü[â^    */
  35.  
  36. /*    âwâbâ_    */
  37.  
  38. MMIINIT    initDataIMETIF = { "MmiInit",  34, 0 } ;
  39.  
  40. /* tifDialogId[0] */
  41.  
  42. static MMIPACKET d001 = {    &tifDialogId[0],
  43.                             NULL,
  44.                             &MJ_DIALOGL40,
  45.                             OFFSET(DIALOGL40),
  46.                             MS_NONE
  47.                         } ;
  48. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  49.                               22,  43, 619, 457,15, 4, 8,
  50.                             MS_UFRAMEL40 | MS_FRAMEL40,
  51.                             NULL,   0,   0
  52.                         } ;
  53.  
  54. /* tifDialogId[1] */
  55.  
  56. static MMIPACKET d002 = {    &tifDialogId[1],
  57.                             &tifDialogId[0],
  58.                             &MJ_DIALOGL40,
  59.                             OFFSET(DIALOGL40),
  60.                             MS_NONE
  61.                         } ;
  62. static DIALOGL40    d002d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  63.                               44,  59, 299, 418,15, 4, 8,
  64.                             MS_DFRAMEL40 | MS_FRAMEL40,
  65.                             NULL,   0,   0
  66.                         } ;
  67.  
  68. /* tifListMenuId0 */
  69.  
  70. static MMIPACKET d003 = {    &tifListMenuId0,
  71.                             &tifDialogId[1],
  72.                             &MJ_LMENUL40,
  73.                             OFFSET(LMENUL40),
  74.                             MS_NONE
  75.                         } ;
  76. static LMENUL40    d003d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  77.                               61,  70, 144, 405, 8,15, 8,
  78.                             MS_FRAMEL40,
  79.                             tifListFunc0,
  80.                                1,  12,  12,
  81.                             MS_NONEL40,
  82.                                0,   0,
  83.                             0,0,0,0,0,0
  84.                         } ;
  85.  
  86. /* tifScrollBarId0 */
  87.  
  88. static MMIPACKET d004 = {    &tifScrollBarId0,
  89.                             &tifDialogId[1],
  90.                             &MJ_SCRLL40,
  91.                             OFFSET(SCRLL40),
  92.                             MS_NONE
  93.                         } ;
  94. static SCRLL40    d004d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40,
  95.                              145,  70, 160, 405, 8, 6, 7,
  96.                             MS_PANELL40 | MS_FRAMEL40,
  97.                             tifScrollFunc0,
  98.                                0,   0, 255,  16,  16,
  99.                              263, 264
  100.                         } ;
  101.  
  102. /* tifMesId[10] */
  103.  
  104. static MMIPACKET d005 = {    &tifMesId[10],
  105.                             &tifDialogId[1],
  106.                             &MJ_MSGL40,
  107.                             OFFSET(MSGL40),
  108.                             MS_NONE
  109.                         } ;
  110. static MSGL40    d005d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  111.                              170,  68, 294,  91, 8,15, 8,
  112.                             MS_NONEL40,
  113.                             "î┤ëµâfâBâîâNâgâè",
  114.                                1,  12,  12,
  115.                             MS_BOLDL40,
  116.                                0,   0
  117.                         } ;
  118.  
  119. /* tifDialogId[4] */
  120.  
  121. static MMIPACKET d006 = {    &tifDialogId[4],
  122.                             &tifDialogId[1],
  123.                             &MJ_DIALOGL40,
  124.                             OFFSET(DIALOGL40),
  125.                             MS_NONE
  126.                         } ;
  127. static DIALOGL40    d006d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  128.                              178,  95, 281, 405,15, 4, 8,
  129.                             MS_DFRAMEL40 | MS_FRAMEL40,
  130.                             NULL,   0,   0
  131.                         } ;
  132.  
  133. /* tifTIconId[0] */
  134.  
  135. static MMIPACKET d007 = {    &tifTIconId[0],
  136.                             &tifDialogId[4],
  137.                             &MJ_TICONL40,
  138.                             OFFSET(TICONL40),
  139.                             MS_NONE
  140.                         } ;
  141. static TICONL40    d007d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  142.                              184, 261, 275, 278, 8, 4, 8,
  143.                             MS_NONEL40,
  144.                             tifTIconFunc0,
  145.                             0x0000, 259, 260
  146.                         } ;
  147.  
  148. /* tifMesId[11] */
  149.  
  150. static MMIPACKET d008 = {    &tifMesId[11],
  151.                             &tifDialogId[4],
  152.                             &MJ_MSGL40,
  153.                             OFFSET(MSGL40),
  154.                             MS_NONE
  155.                         } ;
  156. static MSGL40    d008d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  157.                              196, 261, 275, 280, 8,15, 8,
  158.                             MS_NONEL40,
  159.                             "êΩé┬é╕é┬ôoÿ^",
  160.                                1,  12,  12,
  161.                             MS_NONEL40,
  162.                                0,   0
  163.                         } ;
  164.  
  165. /* tifTIconId[1] */
  166.  
  167. static MMIPACKET d009 = {    &tifTIconId[1],
  168.                             &tifDialogId[4],
  169.                             &MJ_TICONL40,
  170.                             OFFSET(TICONL40),
  171.                             MS_NONE
  172.                         } ;
  173. static TICONL40    d009d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  174.                              184, 288, 275, 305, 8, 4, 8,
  175.                             MS_NONEL40,
  176.                             tifTIconFunc0,
  177.                             0x0000, 259, 260
  178.                         } ;
  179.  
  180. /* tifMesId[12] */
  181.  
  182. static MMIPACKET d010 = {    &tifMesId[12],
  183.                             &tifDialogId[4],
  184.                             &MJ_MSGL40,
  185.                             OFFSET(MSGL40),
  186.                             MS_NONE
  187.                         } ;
  188. static MSGL40    d010d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  189.                              201, 287, 258, 306, 8,15, 8,
  190.                             MS_NONEL40,
  191.                             "êΩèçôoÿ^",
  192.                                1,  12,  12,
  193.                             MS_NONEL40,
  194.                                0,   0
  195.                         } ;
  196.  
  197. /* tifDButtonId[0] */
  198.  
  199. static MMIPACKET d011 = {    &tifDButtonId[0],
  200.                             &tifDialogId[4],
  201.                             &MJ_DBUTTONL40,
  202.                             OFFSET(DBUTTONL40),
  203.                             MS_NONE
  204.                         } ;
  205. static DBUTTONL40    d011d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  206.                              190, 310, 269, 335,12, 4, 8,
  207.                             MS_PANELL40 | MS_FRAMEL40,
  208.                             tifDButtonFunc0,
  209.                             0x0000
  210.                         } ;
  211.  
  212. /* tifMesId[0] */
  213.  
  214. static MMIPACKET d012 = {    &tifMesId[0],
  215.                             &tifDialogId[4],
  216.                             &MJ_MSGL40,
  217.                             OFFSET(MSGL40),
  218.                             MS_NONE
  219.                         } ;
  220. static MSGL40    d012d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  221.                              201, 313, 258, 332, 8,15, 8,
  222.                             MS_NONEL40,
  223.                             "êΩèçôoÿ^",
  224.                                1,  12,  12,
  225.                             MS_NONEL40,
  226.                                0,   0
  227.                         } ;
  228.  
  229. /* tifDButtonId[1] */
  230.  
  231. static MMIPACKET d013 = {    &tifDButtonId[1],
  232.                             &tifDialogId[4],
  233.                             &MJ_DBUTTONL40,
  234.                             OFFSET(DBUTTONL40),
  235.                             MS_NONE
  236.                         } ;
  237. static DBUTTONL40    d013d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  238.                              190, 367, 269, 392,12, 4, 8,
  239.                             MS_PANELL40 | MS_FRAMEL40,
  240.                             tifDButtonFunc1,
  241.                             0x0000
  242.                         } ;
  243.  
  244. /* tifMesId[1] */
  245.  
  246. static MMIPACKET d014 = {    &tifMesId[1],
  247.                             &tifDialogId[4],
  248.                             &MJ_MSGL40,
  249.                             OFFSET(MSGL40),
  250.                             MS_NONE
  251.                         } ;
  252. static MSGL40    d014d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  253.                              201, 370, 258, 389, 8,15, 8,
  254.                             MS_NONEL40,
  255.                             "æS ôo ÿ^",
  256.                                1,  12,  12,
  257.                             MS_NONEL40,
  258.                                0,   0
  259.                         } ;
  260.  
  261. /* tifDialogId[2] */
  262.  
  263. static MMIPACKET d015 = {    &tifDialogId[2],
  264.                             &tifDialogId[0],
  265.                             &MJ_DIALOGL40,
  266.                             OFFSET(DIALOGL40),
  267.                             MS_NONE
  268.                         } ;
  269. static DIALOGL40    d015d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  270.                              342,  59, 597, 418,15, 4, 8,
  271.                             MS_DFRAMEL40 | MS_FRAMEL40,
  272.                             NULL,   0,   0
  273.                         } ;
  274.  
  275. /* tifListMenuId1 */
  276.  
  277. static MMIPACKET d016 = {    &tifListMenuId1,
  278.                             &tifDialogId[2],
  279.                             &MJ_LMENUL40,
  280.                             OFFSET(LMENUL40),
  281.                             MS_NONE
  282.                         } ;
  283. static LMENUL40    d016d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  284.                              359,  70, 442, 405, 8,15, 8,
  285.                             MS_FRAMEL40,
  286.                             tifListFunc1,
  287.                                1,  12,  12,
  288.                             MS_NONEL40,
  289.                                0,   0,
  290.                             0,0,0,0,0,0
  291.                         } ;
  292.  
  293. /* tifMesId[13] */
  294.  
  295. static MMIPACKET d017 = {    &tifMesId[13],
  296.                             &tifDialogId[2],
  297.                             &MJ_MSGL40,
  298.                             OFFSET(MSGL40),
  299.                             MS_NONE
  300.                         } ;
  301. static MSGL40    d017d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  302.                              467,  70, 594,  89, 8,15, 8,
  303.                             MS_NONEL40,
  304.                             "î┤ëµôoÿ^âpâlâï",
  305.                                1,  12,  12,
  306.                             MS_BOLDL40,
  307.                                0,   0
  308.                         } ;
  309.  
  310. /* tifDialogId[3] */
  311.  
  312. static MMIPACKET d018 = {    &tifDialogId[3],
  313.                             &tifDialogId[2],
  314.                             &MJ_DIALOGL40,
  315.                             OFFSET(DIALOGL40),
  316.                             MS_NONE
  317.                         } ;
  318. static DIALOGL40    d018d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  319.                              476,  95, 579, 405,15, 4, 8,
  320.                             MS_DFRAMEL40 | MS_FRAMEL40,
  321.                             NULL,   0,   0
  322.                         } ;
  323.  
  324. /* tifDButtonId[5] */
  325.  
  326. static MMIPACKET d019 = {    &tifDButtonId[5],
  327.                             &tifDialogId[3],
  328.                             &MJ_DBUTTONL40,
  329.                             OFFSET(DBUTTONL40),
  330.                             MS_NONE
  331.                         } ;
  332. static DBUTTONL40    d019d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  333.                              488, 310, 567, 335,12, 4, 8,
  334.                             MS_PANELL40 | MS_FRAMEL40,
  335.                             tifDButtonFunc5,
  336.                             0x0000
  337.                         } ;
  338.  
  339. /* tifMesId[5] */
  340.  
  341. static MMIPACKET d020 = {    &tifMesId[5],
  342.                             &tifDialogId[3],
  343.                             &MJ_MSGL40,
  344.                             OFFSET(MSGL40),
  345.